package com.sq.partner.manager.mybatis.model;

import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.util.Date;

import com.sq.partner.manager.util.DateUtil;

/**
 * 激活卡单model
 * SQ
 *
 */
public class CardInfo {
    private String cardDefineId;    //卡定义ID
    private String appId;           //申请卡单ID
    private String cardNo;          //卡号
    private String cardPw;          //卡单密码
    private String deptNo;          //当前机构
    private String operatorNo;      //业务员
    private String agentNo;         //代理人
    private BigDecimal discount;    //手续费
    private String status;          //状态
    private BigDecimal totPremamt;  //保费
    private BigDecimal premRate;    //手续费比例
    private Date appDate;           //激活时间
    private Date effDate;           //起保时间
    private String agentProtocolno; //代理协议
    private String docId;           //单证类型
    private String chandle;         //领用人
    private String preFee;          //是否预付费
    private String payMrk;          //是否已缴费
    private Date disableDate;       //失效日期
    private String disableDateStr;
    private String receiveDepno;     //接收机构
    private String commamtId;     //出库ID
    private String name;             //卡名称
    private String planNo;           //方案号
    private String planName;           //方案名称
    private String pricelessType;    //卡类型
    private String stagNo;        //暂存单号
    private String cbrkrNme;    //代理人名称
    private String serviceCode;   //服务代码
    private String serviceName;   //服务名称
    private String empName;    //业务员名称
    private String teamCode;   //团队代码
    private String teamName;   //团队名称
    private String channleCode;   //归属渠道
    private String channleType;   //渠道类型
    private String newBsnsType;    //新业务来源
    private String categoryCode;    //原业务来源
    private String appNo;     //投保单号 
    private String itermNo;//收付用行号
    private String typeCode;//险别
    
    private String type;//类型转换
    
    
    public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getIsSeeMoney() {
        return isSeeMoney;
    }
    public void setIsSeeMoney(String isSeeMoney) {
        this.isSeeMoney = isSeeMoney;
    }
    private String isSeeMoney;
    public String getCardDefineId() {
        return cardDefineId;
    }
    public void setCardDefineId(String cardDefineId) {
        this.cardDefineId = cardDefineId;
    }
    public String getAppId() {
        return appId;
    }
    public void setAppId(String appId) {
        this.appId = appId;
    }
    public String getCardNo() {
        return cardNo;
    }
    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }
    public String getCardPw() {
        return cardPw;
    }
    public void setCardPw(String cardPw) {
        this.cardPw = cardPw;
    }
    public String getDeptNo() {
        return deptNo;
    }
    public void setDeptNo(String deptNo) {
        this.deptNo = deptNo;
    }
    public String getOperatorNo() {
        return operatorNo;
    }
    public void setOperatorNo(String operatorNo) {
        this.operatorNo = operatorNo;
    }
    public String getAgentNo() {
        return agentNo;
    }
    public void setAgentNo(String agentNo) {
        this.agentNo = agentNo;
    }
    public BigDecimal getDiscount() {
        return discount;
    }
    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }
    public String getStatus() {
        return status;
    }
    public void setStatus(String status) {
        this.status = status;
    }
    public BigDecimal getTotPremamt() {
        return totPremamt;
    }
    public void setTotPremamt(BigDecimal totPremamt) {
        DecimalFormat decimalFormat = new DecimalFormat("#.00");
        if (totPremamt != null) {
            this.totPremamt = new BigDecimal(decimalFormat.format(totPremamt));
        } else {
            this.totPremamt = totPremamt;
        }
    }
    public BigDecimal getPremRate() {
        return premRate;
    }
    public void setPremRate(BigDecimal premRate) {
        this.premRate = premRate;
    }
    public Date getAppDate() {
        return appDate;
    }
    public void setAppDate(Date appDate) {
        this.appDate = appDate;
    }
    public Date getEffDate() {
        return effDate;
    }
    public void setEffDate(Date effDate) {
        this.effDate = effDate;
    }
    public String getAgentProtocolno() {
        return agentProtocolno;
    }
    public void setAgentProtocolno(String agentProtocolno) {
        this.agentProtocolno = agentProtocolno;
    }
    public String getDocId() {
        return docId;
    }
    public void setDocId(String docId) {
        this.docId = docId;
    }
    public String getChandle() {
        return chandle;
    }
    public void setChandle(String chandle) {
        this.chandle = chandle;
    }
    public String getPreFee() {
        return preFee;
    }
    public void setPreFee(String preFee) {
        this.preFee = preFee;
    }
    public String getPayMrk() {
        return payMrk;
    }
    public void setPayMrk(String payMrk) {
        this.payMrk = payMrk;
    }
    public Date getDisableDate() {
        return disableDate;
    }
    public String getDisableDateStr() {
        return disableDateStr;
    }
    public void setDisableDate(Date disableDate) throws Exception {
        this.disableDate = disableDate;
        if(disableDate != null){
            this.disableDateStr=DateUtil.format(disableDate,"yyyy-MM-dd");
        }
    }
    public String getReceiveDepno() {
        return receiveDepno;
    }
    public void setReceiveDepno(String receiveDepno) {
        this.receiveDepno = receiveDepno;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getPlanNo() {
        return planNo;
    }
    public void setPlanNo(String planNo) {
        this.planNo = planNo;
    }
    public String getPlanName() {
        return planName;
    }
    public void setPlanName(String planName) {
        this.planName = planName;
    }
    public String getPricelessType() {
        return pricelessType;
    }
    public void setPricelessType(String pricelessType) {
        this.pricelessType = pricelessType;
    }
    public String getCommamtId() {
        return commamtId;
    }
    public void setCommamtId(String commamtId) {
        this.commamtId = commamtId;
    }
    public String getStagNo() {
        return stagNo;
    }
    public void setStagNo(String stagNo) {
        this.stagNo = stagNo;
    }
    public String getCbrkrNme() {
        return cbrkrNme;
    }
    public void setCbrkrNme(String cbrkrNme) {
        this.cbrkrNme = cbrkrNme;
    }
    public String getServiceCode() {
        return serviceCode;
    }
    public void setServiceCode(String serviceCode) {
        this.serviceCode = serviceCode;
    }
    public String getServiceName() {
        return serviceName;
    }
    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }
    public String getEmpName() {
        return empName;
    }
    public void setEmpName(String empName) {
        this.empName = empName;
    }
    public String getTeamCode() {
        return teamCode;
    }
    public void setTeamCode(String teamCode) {
        this.teamCode = teamCode;
    }
    public String getTeamName() {
        return teamName;
    }
    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }
    public String getChannleCode() {
        return channleCode;
    }
    public void setChannleCode(String channleCode) {
        this.channleCode = channleCode;
    }
    public String getChannleType() {
        return channleType;
    }
    public void setChannleType(String channleType) {
        this.channleType = channleType;
    }
    public String getNewBsnsType() {
        return newBsnsType;
    }
    public void setNewBsnsType(String newBsnsType) {
        this.newBsnsType = newBsnsType;
    }
    public String getCategoryCode() {
        return categoryCode;
    }
    public void setCategoryCode(String categoryCode) {
        this.categoryCode = categoryCode;
    }
    public String getAppNo() {
        return appNo;
    }
    public void setAppNo(String appNo) {
        this.appNo = appNo;
    }
    public String getItermNo() {
        return itermNo;
    }
    public void setItermNo(String itermNo) {
        this.itermNo = itermNo;
    }
    public String getTypeCode() {
        return typeCode;
    }
    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }
}
